package com.aaa.hospital.ManagementEnd.service.Impl;

import com.aaa.hospital.ManagementEnd.mapper.DiagnoseDao;
import com.aaa.hospital.ManagementEnd.pojo.Diagnose;
import com.aaa.hospital.ManagementEnd.service.DiagnoseService;
import com.aaa.hospital.ManagementEnd.util.DiagnoseDB;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class DiagnoseServiceImpl implements DiagnoseService {
@Autowired
 private  DiagnoseDao diagnoseDao;


    @Override
    public boolean insert(Diagnose diagnose) {
        return diagnoseDao.insert(diagnose);
    }

    @Override
    public List<DiagnoseDB> queryAll(Integer did) {
        return diagnoseDao.queryAll(did);
    }


    @Override
    public List<DiagnoseDB> SelectName(Integer did,String name) {
        return diagnoseDao.SelectName(did,name);
    }

    @Override
    public List<DiagnoseDB> queryHZ(Integer visid) {
        return diagnoseDao.queryHZ(visid);
    }

    @Override
    public List<DiagnoseDB> queryHZMH(Integer visid,Date ttime) {
        return diagnoseDao.queryHZMH(visid,ttime);
    }
}
